<script>
	import Vue from 'vue'
	export default {
		onLaunch: function() {
			this.getCfg()
		},
		onShow() {
			console.log('App 进入前台')
			// #ifdef H5
			// uni.hideTabBar({}) // 隐藏底部
			
			// let ua = window.navigator.userAgent.toLowerCase()
			// if (ua.match(/MicroMessenger/i) != 'micromessenger') {
			// 	window.location.href = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=APPID&redirect_uri=REDIRECT_URI&response_type=code&scope=SCOPE&state=STATE#wechat_redirect'
			// 	return false
			// }
			// #endif
			
			// 回到顶部按钮出现的滚动初始值
			Vue.prototype.scrollHeight = 700
			
			// 登录后刷新缓存
			uni.$on(this.ENUM.EVENT_LOGIN_KEY, () => {
			})
		},
		methods: {
		},
		onHide() {
		}
	}
</script>

<style lang="scss">
	@import "uview-ui/index.scss";
	@import "common/iconfont.css";
	@import "common/animation.css";
	@import "common/com.scss";
	
	page {
		height: 100%;
		background: #f8f8f8;
		-webkit-overflow-scrolling: touch;
	}
	.hidden {
		height: 100vh;
		overflow: hidden;
		position: fixed;
		left: 0;
		right: 0;
	}
	@font-face {
		font-family: 'customFont';
		src: url('~@/static/DHUDC1.01-Bold.ttf') format('truetype');
	}
	.customFont {
		font-family: customFont;
	}
</style>
